﻿using Demo;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AI.Controllers
{
    [Route("yjh/[controller]")]
    [ApiController]
    public class AIYController : ControllerBase
    {
        private readonly AIYDemo _DB;
        public AIYController(AIYDemo context)
        {
            _DB = context;
        }

        /// <summary>
        /// 获取所有信息
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public List<AIY> GetAIY()
        {
            return _DB.AIY.ToList();
        }

    }
}
